/*
 * @name: 导航名称设置
 * @Author: along
 * @Date: 2019-07-17
 * @Last Modified by: along
 * @Last Modified time: 2020-07-17
*/
export default {
    namespaced: true,
    state: {
        title: ''
    },
    mutations: {
        SET_HEAD (state, list) {
            state.title = '';
            list.map((item, index) => {
                state.title += item.title + ((index == 0 || index == list.length - 1) ? '' : ' / ');
            });
        }
    }
};